Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / CellMatrix<T> Class / TryGet Method
Row index of the cell.
Column index of the cell.
When this method returns, contains the value associated with the specified cell, if the cell has value; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.


In This Topic
    TryGet Method (CellMatrix<T>)
    In This Topic
    Gets the value associated with the specified cell.
    Syntax
    'Declaration
     
    
    Public Function TryGet( _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByRef value As T _
    ) As Boolean
    'Usage
     
    
    Dim instance As CellMatrix(Of T)
    Dim row As Integer
    Dim column As Integer
    Dim value As T
    Dim value As Boolean
     
    value = instance.TryGet(row, column, value)
    public bool TryGet( 
       int row,
       int column,
       out T value
    )

    Parameters

    row
    Row index of the cell.
    column
    Column index of the cell.
    value
    When this method returns, contains the value associated with the specified cell, if the cell has value; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

    Return Value

    true if the CellMatrix<T> contains an element at the specified cell; otherwise, false.
    See Also